# ---------- ---------- ---------- ---------- ---------- ----------
#
# project_nyc
#
#    1) config, vars, and target
#    2) functions
#    3) phonies
#
# ---------- ---------- ---------- ---------- ---------- ----------


target: help


# ---------- ---------- ---------- ---------- ---------- ----------
# functions
# ---------- ---------- ---------- ---------- ---------- ----------

define run-tests
	@npx nyc mocha test.js
endef


# ---------- ---------- ---------- ---------- ---------- ----------
# phonies
# ---------- ---------- ---------- ---------- ---------- ----------	

.PHONY: help
help:
	@echo "Usage: make [PHONY] [OPTIONS]"
	@sed -n -e "/sed/! s/\.PHONY: //p" Makefile


.PHONY: test
test:
	@$(call run-tests)
